#!/usr/bin/python
# -*- coding: UTF-8 -*-

#! encoding = utf-8

from lib.follow import Douyin
from urllib.request import urlopen
import sys

def start(device_id):
    device = Douyin(device_id)
    while True:
        device.check_window()

if __name__ == "__main__":
    device_id = sys.argv[1]
    start(device_id)